import request from '@/utils/request'

// 查询巡逻任务列表
export function listCruiserTask(query) {
  return request({
    url: '/waitress/CruiserTask/list',
    method: 'get',
    params: query
  })
}

// 查询巡逻任务详细
export function getCruiserTask(id) {
  return request({
    url: '/waitress/CruiserTask/' + id,
    method: 'get'
  })
}

// 新增巡逻任务
export function addCruiserTask(data) {
  return request({
    url: '/waitress/CruiserTask',
    method: 'post',
    data: data
  })
}

// 修改巡逻任务
export function updateCruiserTask(data) {
  return request({
    url: '/waitress/CruiserTask',
    method: 'put',
    data: data
  })
}

// 删除巡逻任务
export function delCruiserTask(id) {
  return request({
    url: '/waitress/CruiserTask/' + id,
    method: 'delete'
  })
}

// 导出巡逻任务
export function exportCruiserTask(query) {
  return request({
    url: '/waitress/CruiserTask/export',
    method: 'get',
    params: query
  })
}

// 修改巡逻任务
export function updCruiserOff(data) {
  return request({
    url: '/waitress/CruiserTask/updCruiserOff',
    method: 'put',
    data: data
  })
}
